<!doctype html>



  


<html class="theme-next pisces use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Android,View," />





  <link rel="alternate" href="/atom.xml" title="GrantonZhuang's Blog" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.1" />






<meta name="description" content="BlurImageView 的基本使用前言写作的题材来自于 像 Medium 那样在 Android device 上优雅地加载图片
源码在这里">
<meta property="og:type" content="article">
<meta property="og:title" content="BlurImageView的基本使用和源码解析">
<meta property="og:url" content="https://grantonzhuang.github.io/2016/04/24/BlurImageView的基本使用和源码解析/index.html">
<meta property="og:site_name" content="GrantonZhuang's Blog">
<meta property="og:description" content="BlurImageView 的基本使用前言写作的题材来自于 像 Medium 那样在 Android device 上优雅地加载图片
源码在这里">
<meta property="og:updated_time" content="2016-07-29T13:56:02.584Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="BlurImageView的基本使用和源码解析">
<meta name="twitter:description" content="BlurImageView 的基本使用前言写作的题材来自于 像 Medium 那样在 Android device 上优雅地加载图片
源码在这里">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: 0,
      author: '博主'
    }
  };
</script>




  <link rel="canonical" href="https://grantonzhuang.github.io/2016/04/24/BlurImageView的基本使用和源码解析/"/>

  <title> BlurImageView的基本使用和源码解析 | GrantonZhuang's Blog </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">GrantonZhuang's Blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle"></p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/index.html" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/index.html" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/index.html" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                BlurImageView的基本使用和源码解析
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2016-04-24T18:42:03+08:00" content="2016-04-24">
              2016-04-24
            </time>
          </span>

          

          
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="BlurImageView-的基本使用"><a href="#BlurImageView-的基本使用" class="headerlink" title="BlurImageView 的基本使用"></a>BlurImageView 的基本使用</h2><h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><p>写作的题材来自于 <a href="http://gold.xitu.io/entry/5647624300b07eb0183a46fd" target="_blank" rel="external">像 Medium 那样在 Android device 上优雅地加载图片</a></p>
<p><a href="https://github.com/wingjay/BlurImageView" target="_blank" rel="external">源码在这里</a></p>
<a id="more"></a>
<h3 id="简短的说明"><a href="#简短的说明" class="headerlink" title="简短的说明"></a>简短的说明</h3><p>一个图片加载相关的框架，通过预先加载小图片并且模糊化，加载好大图片之后进行替换，达到良好的视觉效果和用户体验。</p>
<p>引用自 <a href="http://gold.xitu.io/entry/5647624300b07eb0183a46fd" target="_blank" rel="external">像 Medium 那样在 Android device 上优雅地加载图片</a></p>
<blockquote>
<p>同样采用 stackBlur 算法，实现了在 Android 上加载大图。即先加载一张小图，不到 1 KB, 本地模糊化并立即显示给用户；同时去加载大图，一旦加载完成，替换该模糊图片。</p>
</blockquote>
<p>因此，同一张图片，需要服务端提供低分辨率和高分辨率，这个控件的适用场景是 产品向用户提供高清大图，并且需要在加载的过程中给用户良好的体验。这个加载过程中，一共加载了两张图片，一张是低分辨率，一张是高分辨率，对于用户数据流量额外开销的疑问，在 <a href="https://github.com/wingjay/BlurImageView/issues/1" target="_blank" rel="external">这里</a> 作者也给出了回答。</p>
<h3 id="简单的使用"><a href="#简单的使用" class="headerlink" title="简单的使用"></a>简单的使用</h3><figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">BlurImageView blurImageView = (BlurImageView) findViewById(R.id.blur_img);</div><div class="line"><span class="comment">// 小图片的地址</span></div><div class="line">String blurUrl = <span class="string">"xxx"</span>;</div><div class="line"><span class="comment">// 高清图片的地址</span></div><div class="line">String normalUrl = <span class="string">"xxx"</span>;</div><div class="line">blurImageView.setFullImageByUrl(blurUrl, normalUrl);</div></pre></td></tr></table></figure>
<p>效果图 <a href="http://gold.xitu.io/entry/5647624300b07eb0183a46fd" target="_blank" rel="external">见这里</a></p>
<h2 id="BlurImageView-源码解析"><a href="#BlurImageView-源码解析" class="headerlink" title="BlurImageView 源码解析"></a>BlurImageView 源码解析</h2><h3 id="关键文件"><a href="#关键文件" class="headerlink" title="关键文件"></a>关键文件</h3><ul>
<li><code>BlurImageView.java</code> 即该控件</li>
<li><code>FastBlurUtil.java</code> 封装好了 <code>StackBlur</code> 算法的辅助类</li>
</ul>
<h3 id="BlurImageView-java-分析"><a href="#BlurImageView-java-分析" class="headerlink" title="BlurImageView.java 分析"></a><code>BlurImageView.java</code> 分析</h3><p>以下是<code>BlurImageView.java</code> 的分析：</p>
<p><code>BlurImageView</code> 继承自 <code>RelativeLayout</code>，首先查看构造函数中调用的 <code>init()</code> 方法：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line"><span class="function"><span class="keyword">private</span> <span class="keyword">void</span> <span class="title">init</span><span class="params">()</span> </span>&#123;</div><div class="line">    initUIL();</div><div class="line">    imageLoader = ImageLoader.getInstance();</div><div class="line"></div><div class="line">    initChildView();</div><div class="line">    initDisplayImageOptions();</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p><code>initUIL()</code> 方法，设置了 <code>ImageLoader</code> 的相关参数，由此可见这个控件加载图片的话，使用的也是大名鼎鼎的 <code>ImageLoader</code></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div></pre></td><td class="code"><pre><div class="line"><span class="function"><span class="keyword">private</span> <span class="keyword">void</span> <span class="title">initUIL</span><span class="params">()</span> </span>&#123;</div><div class="line">    ImageLoaderConfiguration.Builder config = <span class="keyword">new</span> ImageLoaderConfiguration.Builder(mContext);</div><div class="line">    config.threadPriority(Thread.NORM_PRIORITY - <span class="number">2</span>);</div><div class="line">    config.denyCacheImageMultipleSizesInMemory();</div><div class="line">    config.diskCacheFileNameGenerator(<span class="keyword">new</span> Md5FileNameGenerator());</div><div class="line">    config.diskCacheSize(<span class="number">50</span> * <span class="number">1024</span> * <span class="number">1024</span>); <span class="comment">// 50 MiB</span></div><div class="line">    config.tasksProcessingOrder(QueueProcessingType.LIFO);</div><div class="line">    config.writeDebugLogs(); <span class="comment">// Remove for release app</span></div><div class="line"></div><div class="line">    <span class="comment">// Initialize ImageLoader with configuration.</span></div><div class="line">    ImageLoader.getInstance().init(config.build());</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>而从 <code>initChildView()</code> 的代码中，不难看出， <code>BlurImageView</code> 分为两个部分：</p>
<ul>
<li>一个是用以显示加载进度的 <code>LoadingCircleProgressView</code></li>
<li>一个是用以显示图片的 <code>ImageView</code></li>
</ul>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div></pre></td><td class="code"><pre><div class="line"><span class="function"><span class="keyword">private</span> <span class="keyword">void</span> <span class="title">initChildView</span><span class="params">()</span> </span>&#123;</div><div class="line">    imageView = <span class="keyword">new</span> ImageView(mContext);</div><div class="line">    imageView.setLayoutParams(<span class="keyword">new</span> LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));</div><div class="line">    imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);</div><div class="line">    loadingCircleProgressView = <span class="keyword">new</span> LoadingCircleProgressView(mContext);</div><div class="line">    LayoutParams progressBarLayoutParams =</div><div class="line">                <span class="keyword">new</span> LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);</div><div class="line">    progressBarLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);</div><div class="line">    loadingCircleProgressView.setLayoutParams(progressBarLayoutParams);</div><div class="line">    loadingCircleProgressView.setVisibility(GONE);</div><div class="line"></div><div class="line">    addView(imageView);</div><div class="line">    addView(loadingCircleProgressView);</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>接着看 <code>initDisplayImageOptions</code> 方法，可以看出这里针对 <code>ImageLoader</code> 设置了缓存到硬盘也就是存储卡的选项。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="function"><span class="keyword">private</span> <span class="keyword">void</span> <span class="title">initDisplayImageOptions</span><span class="params">()</span> </span>&#123;</div><div class="line">    displayImageOptions = <span class="keyword">new</span> DisplayImageOptions.Builder()</div><div class="line">        .cacheOnDisk(<span class="keyword">true</span>)</div><div class="line">        .considerExifParams(<span class="keyword">true</span>).bitmapConfig(Bitmap.Config.RGB_565)</div><div class="line">        .build();</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>再回到我们调用到的，用以加载图片的方法：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">blurImageView.setFullImageByUrl(blurUrl, normalUrl);</div></pre></td></tr></table></figure>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">setFullImageByUrl</span><span class="params">(String blurImageUrl, String originImageUrl)</span> </span>&#123;</div><div class="line">    mBlurImageUrl = blurImageUrl;</div><div class="line">    mOriginImageUrl = originImageUrl;</div><div class="line">    cancelImageRequestForSafty();</div><div class="line">    imageLoader.loadImage(blurImageUrl, fullLoadingListener);</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>首先是取消了之前在 <code>imageView</code> 上的加载的任务，追踪 <code>ImageLoader</code> 的源码，可以发现是直接将该任务从 <code>ImageLoader</code> 内部维护的队列中移除。</p>
<p>接着，这里根据 <code>blurImageUrl</code> 也就是低分辨率的图片，先进行加载，并且对这次加载设置了监听，毫无疑问监听里的回调是继续加载大图片。</p>
<p>那么我们来看 <code>fullLoadingListener</code> 的代码</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">private</span> SimpleImageLoadingListener fullLoadingListener = <span class="keyword">new</span> SimpleImageLoadingListener() &#123;</div><div class="line">    <span class="meta">@Override</span></div><div class="line">    <span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">onLoadingComplete</span><span class="params">(String imageUri, View view, Bitmap loadedImage)</span> </span>&#123;</div><div class="line">        imageView.setImageBitmap(getBlurBitmap(loadedImage));</div><div class="line">        imageLoader.displayImage(mOriginImageUrl, imageView, displayImageOptions, <span class="keyword">null</span>, <span class="keyword">new</span> ImageLoadingProgressListener() &#123;</div><div class="line">            <span class="meta">@Override</span></div><div class="line">            <span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">onProgressUpdate</span><span class="params">(String imageUri, View view, <span class="keyword">int</span> current, <span class="keyword">int</span> total)</span> </span>&#123;</div><div class="line">                <span class="keyword">if</span> (!enableProgress) &#123;</div><div class="line">                    <span class="keyword">return</span>;</div><div class="line">                &#125;</div><div class="line">                <span class="keyword">if</span> (current &lt; total) &#123;</div><div class="line">                    loadingCircleProgressView.setVisibility(VISIBLE);</div><div class="line">                    loadingCircleProgressView.setCurrentProgressRatio((<span class="keyword">float</span>) current / total);</div><div class="line">                &#125; <span class="keyword">else</span> &#123;</div><div class="line">                    loadingCircleProgressView.setVisibility(GONE);</div><div class="line">                &#125;</div><div class="line">            &#125;</div><div class="line">        &#125;);</div><div class="line">    &#125;</div><div class="line">&#125;;</div></pre></td></tr></table></figure>
<p>所以，这个监听器的变量名叫 <code>fullLoadingListener</code>，也就是整个完整流程的监听器，在完成低分辨率图片的加载之后，调用了 <code>getBlurBitmap(loadedImage)</code> 方法，使用了 <code>StackBlur</code> 算法得到一个模糊后的图片。并且设置到 <code>imageView</code> 上进行显示，之后，继续加载大图。</p>
<p>在加载大图的过程中有显示进度反馈，最后用大图替代了模糊的图片。</p>
<h3 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h3><p>总体来说，加载的工具基于 <code>ImageLoader</code>, 模糊算法采用的是 <code>StackBlur</code> ，整个控件需要研究的地方并不多，然而这两个用到的工具可研究的地方也非常庞大。</p>
<p><code>BlurImageView</code> 不仅提供了一套完整的加载流程，也提供了其他的加载选项，实现过程大多类似，这里不一一给出，如</p>
<ul>
<li>从网络上，只加载模糊图片的方法 <code>setBlurImageByUrl(String blurImageUrl)</code></li>
<li>从资源文件中，正常加载图片 <code>setOriginImageByRes(int originImageRes)</code></li>
<li>从资源文件中，加载模糊图片 <code>setBlurImageByRes(int blurImageRes)</code></li>
</ul>
<p>由此可见，好的框架不仅仅是考虑了数据输出，还考虑了不同的数据输入，将这些统一实现之后，对外界暴露几个公共方法即可。</p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Android/" rel="tag">#Android</a>
          
            <a href="/tags/View/" rel="tag">#View</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2016/04/19/动态代理与Retrofit/" rel="next" title="动态代理与Retrofit">
                <i class="fa fa-chevron-left"></i> 动态代理与Retrofit
              </a>
            
          </div>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2016/05/01/注解框架RoBoGuice和ButterKnife的对比/" rel="prev" title="注解框架RoBoGuice和ButterKnife的对比">
                注解框架RoBoGuice和ButterKnife的对比 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="http://ww1.sinaimg.cn/mw690/6e8939a6gw1f3g1u1mc6lj20hs0hsmxf.jpg"
               alt="Granton Zhuang" />
          <p class="site-author-name" itemprop="name">Granton Zhuang</p>
          <p class="site-description motion-element" itemprop="description"></p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives/index.html">
              <span class="site-state-item-count">26</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">11</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        
          <div class="feed-link motion-element">
            <a href="/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

      </section>

      
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">
            
              
            
            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#BlurImageView-的基本使用"><span class="nav-number">1.</span> <span class="nav-text">BlurImageView 的基本使用</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#前言"><span class="nav-number">1.1.</span> <span class="nav-text">前言</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#简短的说明"><span class="nav-number">1.2.</span> <span class="nav-text">简短的说明</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#简单的使用"><span class="nav-number">1.3.</span> <span class="nav-text">简单的使用</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#BlurImageView-源码解析"><span class="nav-number">2.</span> <span class="nav-text">BlurImageView 源码解析</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#关键文件"><span class="nav-number">2.1.</span> <span class="nav-text">关键文件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#BlurImageView-java-分析"><span class="nav-number">2.2.</span> <span class="nav-text">BlurImageView.java 分析</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#总结"><span class="nav-number">2.3.</span> <span class="nav-text">总结</span></a></li></ol></li></ol></div>
            
          </div>
        </section>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Granton Zhuang</span>
</div>

<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>

        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.1"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.0.1"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.0.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.1"></script>



  



  




  
  

  

  

  

</body>
</html>
